<!-- 我的发布、任务 item -->
<template>
  <view class="uni-release-item radius pl-15 pr-15 pb-15 mb-15 bcl-white" @tap="toView(item)">
    <view class="box box-column-center">
      <view class="tag  cl-white mr-15" :class="[item.status === 5 || item.status === 3 || item.status === 7 ? 'bcl-main' : 'bcl-second']" style="margin-left: 77%;font-size: 12px;">{{item.status_str || item.status_name}}</view>
    </view>

    <view class="release-title pt-10 pb-10 bold">{{item.title || 0}}</view>

    <view class="box box-between box-column-center">
      <view class="fz-12" style="color: red;">￥<text class="fz-12">{{item.bounty || 0}}</text></view>
	   <view class="cl-basic" style="font-size: 12px;color: #000000;">{{item.view_count || 0}}人浏览/{{item.delivery_count || 0}}人投标</view>
	   <view class="fz-12"><text class="fz-12">{{item.task_sn}}</text></view>
    </view>
  </view>
</template>

<script>
export default {
	name: "uniReleaseItem",
	
	props: {
		item: [Object]
	},
	
	methods: {
		toView(item) {
			uni.navigateTo({
				url: `/task/detail?id=${item.id}`,
			});
		}
	}
};
</script>

<style lang="scss" scoped>
.uni-release-item {
  .tag {
    border-radius: 0 0 8upx 8upx;
    padding: 6upx 10upx;
  }
}
</style>
